 // sm2非对称加密
export function  sm2encrypt() {}

sm2encrypt = function(content) {
  const sm2 = require('sm-crypto').sm2;
  const cipherMode =1 // 1 - C1C3C2，-C1C2C3，默认为1
  let publicKey="04550d9f87e4a5e1621f6c59e0999f5514a4b1db77116a2e4bd4441d180e211c53d79b503ab48985b294de7ea686aba6d64fd2ec4f8b149006a3e62912d8179010";
  let jmpass=sm2.doEncrypt(content,publicKey,cipherMode);
  //let privateKey="008f80e35e6c7e34560a318306c333eb2bf821bc4907a4dca3682f4227d5d49395";
  //console.info("jiami="+jmpass)
  //let jiemi =  sm2.doDecrypt(jmpass,privateKey,cipherMode);
  //console.info("jiemi="+jiemi)
  return jmpass.toString()
}
